﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///移库单明细
    ///</summary>
    [SugarTable("DBO.t_TransferBinOrderDetail")]
    public partial class t_TransferBinOrderDetail
    {
        public t_TransferBinOrderDetail()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:移库单表Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? OrderId { get; set; }

        /// <summary>
        /// Desc:移库单编号
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? OrderSn { get; set; }

        /// <summary>
        /// Desc:物流ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public long? MaterialId { get; set; }

        /// <summary>
        /// Desc:物料名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? MaterialName { get; set; }

        /// <summary>
        /// Desc:移库前库房Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? FromWhId { get; set; }

        /// <summary>
        /// Desc:移库前库房名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FromWhName { get; set; }

        /// <summary>
        /// Desc:移库前库房编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FromWhCode { get; set; }

        /// <summary>
        /// Desc:移库前库房区域ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? FromRegionId { get; set; }

        /// <summary>
        /// Desc:移库前库房区域名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FromRegionName { get; set; }

        /// <summary>
        /// Desc:移库前逻辑分区：为逻辑分区编码，对应中间库T_SM_Region表的主键
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FromRegionCode { get; set; }

        /// <summary>
        /// Desc:移库前库位ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? FromLocationId { get; set; }

        /// <summary>
        /// Desc:移库前库位名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FromLocationName { get; set; }

        /// <summary>
        /// Desc:移库前仓位编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? FromLocationCode { get; set; }

        /// <summary>
        /// Desc:移库后库房ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ToWhId { get; set; }

        /// <summary>
        /// Desc:移库后库房名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ToWhName { get; set; }

        /// <summary>
        /// Desc:移库后库房编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ToWhCode { get; set; }

        /// <summary>
        /// Desc:移库后库房区域ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ToRegionId { get; set; }

        /// <summary>
        /// Desc:移库后库房区域名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ToRegionName { get; set; }

        /// <summary>
        /// Desc:移库后逻辑分区：为逻辑分区编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ToRegionCode { get; set; }

        /// <summary>
        /// Desc:移库后库位ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ToLocationId { get; set; }

        /// <summary>
        /// Desc:移库后库位名称
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ToLocationName { get; set; }

        /// <summary>
        /// Desc:移库后仓位编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ToLocationCode { get; set; }

        /// <summary>
        /// Desc:期望移库的垛数:立库必须整垛移库
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? ExpectedStackingQTY { get; set; }

        /// <summary>
        /// Desc:实际完成移库的垛数:立库会存在无法移库的情况，平库不存在
        /// Default:
        /// Nullable:True
        /// </summary>           
        public decimal? ActualStackingQTY { get; set; }

        /// <summary>
        /// Desc:调仓货品数量:立库则是该垛下物料总数量，平库则是人工需要拣货移库的数量（不一定是整箱移）
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Quantity { get; set; }

        /// <summary>
        /// Desc:是否满垛优先移库:Y优先满垛移库、N优先不满垛移库
        /// Default:
        /// Nullable:True
        /// </summary>           
        public bool? IsFullStackingProirity { get; set; }

        /// <summary>
        /// Desc:移库订单执行的异常编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ExceptionCode { get; set; }

        /// <summary>
        /// Desc:移库订单执行的异常文本
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ExceptionText { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? Remark { get; set; }

        /// <summary>
        /// Desc:创建人ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? CreateUserId { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? CreateUserName { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// Desc:修改人ID
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? ModifyUserId { get; set; }

        /// <summary>
        /// Desc:修改人
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ModifyUserName { get; set; }

        /// <summary>
        /// Desc:修改时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? ModifyDate { get; set; }

        /// <summary>
        /// Desc:单据状态：0-创建;1-提交;2-审核通过;3-作业中；4-已完成;5-强制完成;6-失效；7-异常
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? Status { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? FilterType { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ToLogicalPartCode { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? IsPriorityFilling { get; set; }

    }
}
